home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
ArchiveUtils
/
Opener3.3
/
Opener.app
/
Opener.table
< prev
next >
Wrap
Text File
|
1995-06-12
|
6KB
|
120 lines
#
# These suffix/command pairs tell Opener how to unpack archive files.
# Some abbreviations in the command are expanded before execution:
# unpack: ... => mkdir $t; cd $t; ...
# $f => the current filename
# $g => $f without the path
# $r => $f without any extensions
# $R => $f without any extensions and without the path
# $e => all the extensions (including the dot)
# $t => the temporary filename; if $f = /a/b/c.suff, $t is /tmp/O_c
# $p/... => look for ... in the internal directory;
# e.g., $p/unsit => /LocalApps/Opener.app/unsit
# You can edit the following commands (for example, to use new
# or different archivers). To add new filetypes, look at
# Opener.app/README.rtfd, or in Controller.m
#
# NOTE: .gz must appear in this list AFTER all other extensions which end in
# .gz (such as .tar.gz).
#
Unpack:
.arc unpack: $p/arc ox $f >> /tmp/console.log
.ARC unpack: $p/arc ox $f >> /tmp/console.log
.arj unpack: $p/unarj e $f >> /tmp/console.log
.ARJ unpack: $p/unarj e $f >> /tmp/console.log
.asc $p/atob < $f > $t
.ASC $p/atob < $f > $t
.au cp $f $t.snd; open $t.snd
.AU cp $f $t.snd; open $t.snd
.bin unpack: $p/macunpack -3 $f >> /tmp/console.log
.BIN unpack: $p/macunpack -3 $f >> /tmp/console.log
.compressed /usr/ucb/zcat < $f | (mkdir $t; cd $t; gnutar xpf -)
.COMPRESSED /usr/ucb/zcat < $f | (mkdir $t; cd $t; gnutar xpf -)
.cpt unpack: $p/macunpack -3 $f >> /tmp/console.log
.CPT unpack: $p/macunpack -3 $f >> /tmp/console.log
.gnutar unpack: gnutar xpf $f
.GNUTAR unpack: gnutar xpf $f
.gnutar.gz $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
.gnutar.z $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
.gsm $p/untoast -s < $f > $t
.GSM $p/untoast -s < $f > $t
.hqx unpack: $p/hexbin -3 $f >> /tmp/console.log
.HQX unpack: $p/hexbin -3 $f >> /tmp/console.log
.lha unpack: $p/lha xf $f >> /tmp/console.log
.LHA unpack: $p/lha xf $f >> /tmp/console.log
.lzh unpack: $p/lha xf $f >> /tmp/console.log
.LZH unpack: $p/lha xf $f >> /tmp/console.log
.mime unpack: $p/munpack $f >> /tmp/console.log; open *
.MIME unpack: $p/munpack $f >> /tmp/console.log; open *
.shar unpack: sed '1,/[^:\#]/d' $f | /bin/sh
.SHAR unpack: sed '1,/[^:\#]/d' $f | /bin/sh
.shar.gz $p/gzip -d < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
.shar.z $p/gzip -d < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
.shar.Z $p/gzip -d < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
.sit unpack: $p/macunpack -3 $f >> /tmp/console.log
.SIT unpack: $p/macunpack -3 $f >> /tmp/console.log
.tar unpack: gnutar xpf $f
.TAR unpack: gnutar xpf $f
.tar.gz $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
.tar.z $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
.tar.Z $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
.taz $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
.TAZ $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
.tgz $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
.TGZ $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
.uu unpack: uudecode $f; open *
.UU unpack: uudecode $f; open *
.gz $p/gzip -d < $f > $t
.GZ $p/gzip -d < $f > $t
.z $p/gzip -d < $f > $t
.Z $p/gzip -d < $f > $t
.zip unpack: $p/unzip -o $f >> /tmp/console.log
.ZIP unpack: $p/unzip -o $f >> /tmp/console.log
.zoo unpack: $p/booz x $f >> /tmp/console.log
.ZOO unpack: $p/booz x $f >> /tmp/console.log
# These commands create archive files. The semantics are as above, but:
# $d => the deepest directory path (e.g., /a/b/{c,d,e} => /a/b)
# $f => the filenames, less the $d prefix portion.
# $F => the filenames
# $t => the tmp file, /tmp/O_..., where ... => first file in $f.
# $p/... => look for ... in the internal directory;
# e.g., $p/unsit => /LocalApps/Opener.app/unsit
# In general, the archiving command will look like:
# (cd $d; ... $f > $t; echo $t done)
#
# NOTE: .gz must appear in this list AFTER all other extensions which end in
# .gz (such as .tar.gz). Otherwise the wrong file type may be constructed.
#
Pack:
.arc (cd $d; $p/arc a $t $f >> /tmp/console.log; echo $t done)
.asc (cd $d; $p/btoa < $f > $t; echo $t done)
.compressed (cd $d; gnutar cf - $f | compress > $t; echo $t done)
.gnutar (cd $d; gnutar cf - $f > $t; echo $t done)
.gnutar.gz (cd $d; gnutar cf - $f | $p/gzip > $t; echo $t done)
.gnutar.z (cd $d; gnutar cf - $f | $p/gzip > $t; echo $t done)
.gsm (cd $d; $p/toast -cs < $f > $t; echo $t done)
.lha (cd $d; $p/lha c $t $f >> /tmp/console.log; echo $t done)
.lzh (cd $d; $p/lha c $t $f >> /tmp/console.log; echo $t done)
.mime (cd $d; $p/mpack -s "" -o $t $f; echo $t done)
.shar (cd $d; shar $f > $t; echo $t done)
.shar.gz (cd $d; shar $f | $p/gzip > $t; echo $t done)
.shar.z (cd $d; shar $f | $p/gzip > $t; echo $t done)
.shar.Z (cd $d; shar $f | compress > $t; echo $t done)
.tar (cd $d; gnutar cf - $f > $t; echo $t done)
.tar.gz (cd $d; gnutar cf - $f | $p/gzip > $t; echo $t done)
.tar.z (cd $d; gnutar cf - $f | $p/gzip > $t; echo $t done)
.tar.Z (cd $d; gnutar cf - $f | compress > $t; echo $t done)
.taz (cd $d; gnutar cf - $f | compress > $t; echo $t done)
.tgz (cd $d; gnutar cf - $f | $p/gzip > $t; echo $t done)
.uu (cd $d; uuencode $f $f > $t; echo $t done)
.gz (cd $d; $p/gzip < $f > $t; echo $t done)
.z (cd $d; $p/gzip < $f > $t; echo $t done)
.Z (cd $d; compress < $f > $t; echo $t done)
.zip (cd $d; $p/zip $t $f >> /tmp/console.log; echo $t done)
# drop a directory on Opener and pick "submit" to automatically
# ftp the .tar.Z and README files to NeXT archive sites and
# alert the archivists. NB, directory must include a README file.
remote (cd $d; $p/Submit $f)